package com.qfedu.tantu.controller;

import com.qfedu.tantu.service.intf.AdvertisementService;
import com.qfedu.tantu.vo.R;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.qfedu.tantu.service.intf.ArticleService;
import com.qfedu.tantu.vo.R;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/api/advertisement")
@Api(tags = "广告页面")
@CrossOrigin
public class AdvertisementController {
    @Autowired
    private AdvertisementService service;
    @GetMapping("/indexselect.do")
    public R indexSelect(){
        return service.indexQuery();
    }

}
